const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    @property(cc.AudioSource)
    audioSource: cc.AudioSource = null;

    play () {
        this.audioSource.play();
    }

    pause () {
        this.audioSource.pause();
    }

    onLoad () {

    }

    start () {

    }

    update (dt: number) {

    }
}
